AUTOMAKE_OPTIONS = subdir-objects

ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

AM_CXXFLAGS = @AM_CXXFLAGS@ -I../libex $(SL_INCLUDE)

AM_ADDFLAGS = @AM_ADDFLAGS@ -I../libex $(SL_LDADD)

AM_LDFLAGS = -DBUILDING_EXAMPLE_DLL @AM_LDFLAGS@ -I../libex $(SL_LDADD)

lib_LTLIBRARIES = libbancosl-@LIBBANCOSL_API_VERSION@.la
lib_LIBRARIES = libbancosl-@LIBBANCOSL_API_VERSION@.a

libbancosl_@LIBBANCOSL_API_VERSION@_ladir = $(includedir)
libbancosl_@LIBBANCOSL_API_VERSION@_adir = $(includedir)

libbancosl_@LIBBANCOSL_API_VERSION@_la_SOURCES = bancosl.C ../libex/libex.C
libbancosl_@LIBBANCOSL_API_VERSION@_a_SOURCES = bancosl.C ../libex/libex.C

libbancosl_@LIBBANCOSL_API_VERSION@_la_HEADERS = bancosl.h ../libex/libex.h
libbancosl_@LIBBANCOSL_API_VERSION@_a_HEADERS = bancosl.h ../libex/libex.h

libbancosl_@LIBBANCOSL_API_VERSION@_la_LDFLAGS = -version-info $(LIBBANCOSL_SO_VERSION) -no-undefined $(SL_LDADD)

libbancosl_@LIBBANCOSL_API_VERSION@_la_CPPFLAGS = -I. -g -c -L. -I../libex $(SL_INCLUDE)

win32-dll:
	$(CXX) -I. -L. -shared -Wl,-soname,--out-implib,--enable-stdcall-fixup,.libs/libbancosl-@LIBBANCOSL_API_VERSION@.a -o libbancosl-@LIBBANCOSL_API_VERSION@.dll .libs/libbancosl_@LIBBANCOSL_API_VERSION@_la-bancosl.o -L$(prefix)/lib -L$(prefix)/bin 
